
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.TextArea;
import java.awt.List;
import java.awt.Button;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class VueSaisieArticle extends Vue {
	
	private JPanel contentPane;
	private JTextField textFieldTitre;
	private JTextField textFieldPageDebut;
	
	VueSaisieArticle(Controleur controleur)
	{
		super(controleur);		
		setTitle("Enregistrement d'un nouvel article");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); 
		setBounds(100, 100, 450, 450);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblTitre = new JLabel("Titre");
		lblTitre.setBounds(70, 33, 61, 15);
		contentPane.add(lblTitre);
		
		textFieldTitre = new JTextField();
		textFieldTitre.setBounds(180, 31, 114, 19);
		contentPane.add(textFieldTitre);
		textFieldTitre.setColumns(10);
		
		JButton btnVerifier = new JButton("Vérifier");
		btnVerifier.setBounds(323, 28, 107, 25);
		contentPane.add(btnVerifier);
		
		JLabel lblPageDeDbut = new JLabel("Page de début");
		lblPageDeDbut.setBounds(70, 75, 107, 15);
		contentPane.add(lblPageDeDbut);
		
		textFieldPageDebut = new JTextField();
		textFieldPageDebut.setEditable(false);
		textFieldPageDebut.setEnabled(false);
		textFieldPageDebut.setBounds(180, 73, 114, 19);
		contentPane.add(textFieldPageDebut);
		textFieldPageDebut.setColumns(10);
		
		JLabel lblAuteurs = new JLabel("Auteur(s)");
		lblAuteurs.setBounds(70, 160, 91, 15);
		contentPane.add(lblAuteurs);
		
		JLabel lblMotscls = new JLabel("Mots-clés");
		lblMotscls.setBounds(70, 297, 91, 15);
		contentPane.add(lblMotscls);
		
		List list = new List();
		list.setEnabled(false);
		list.setBounds(180, 118, 162, 85);
		contentPane.add(list);
		
		List list_1 = new List();
		list_1.setEnabled(false);
		list_1.setBounds(180, 253, 162, 109);
		contentPane.add(list_1);
		
		JButton btnCrerAuteur = new JButton("Créer auteur");
		btnCrerAuteur.setEnabled(false);
		btnCrerAuteur.setBounds(180, 209, 162, 25);
		contentPane.add(btnCrerAuteur);
		
		JButton btnOk = new JButton("OK");
		btnOk.setEnabled(false);
		btnOk.setBounds(165, 385, 107, 25);
		contentPane.add(btnOk);
	}
}
